package com.young.ums.model;

import com.young.common.core.excel.ExcelColumn;
import java.util.Date;
/**
* 登录日志实体类
* Created by imrookie on 2018-9-21.
*/
public class LoginLog{

    @ExcelColumn(value = "主键", order = 1)
    private String id;//主键
    @ExcelColumn(value = "账号", order = 2)
    private String account;//账号
    @ExcelColumn(value = "登录结果", order = 3)
    private String result;//登录结果
    @ExcelColumn(value = "客户端IP", order = 4)
    private String clientIp;//客户端IP
    @ExcelColumn(value = "服务器IP", order = 5)
    private String serverIp;//服务器IP
    @ExcelColumn(value = "设备类型，IOS/ANDROID/WINDOWSPHONE/H5", order = 6)
    private String deviceType;//设备类型，IOS/ANDROID/WINDOWSPHONE/H5
    @ExcelColumn(value = "登录时间", order = 7)
    private Date loginTime;//登录时间
    private Date loginTime2;//登录时间,按时间检索时作为结束时间使用
    @ExcelColumn(value = "备注", order = 8)
    private String remark;//备注

    private String orderBy;//排序字段
    private String orderType;//排序类型,升序asc/降序desc

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":").append(id != null ? "\"" : "").append(id).append(id != null ? "\"" : "");
        sb.append(", \"account\":").append(account != null ? "\"" : "").append(account).append(account != null ? "\"" : "");
        sb.append(", \"result\":").append(result != null ? "\"" : "").append(result).append(result != null ? "\"" : "");
        sb.append(", \"clientIp\":").append(clientIp != null ? "\"" : "").append(clientIp).append(clientIp != null ? "\"" : "");
        sb.append(", \"serverIp\":").append(serverIp != null ? "\"" : "").append(serverIp).append(serverIp != null ? "\"" : "");
        sb.append(", \"deviceType\":").append(deviceType != null ? "\"" : "").append(deviceType).append(deviceType != null ? "\"" : "");
        sb.append(", \"loginTime\":").append(loginTime != null ? "\"" : "").append(loginTime).append(loginTime != null ? "\"" : "");
        sb.append(", \"loginTime2\":").append(loginTime2 != null ? "\"" : "").append(loginTime2).append(loginTime2 != null ? "\"" : "");
        sb.append(", \"remark\":").append(remark != null ? "\"" : "").append(remark).append(remark != null ? "\"" : "");
        sb.append(", \"orderBy\":").append(orderBy != null ? "\"" : "").append(orderBy).append(orderBy != null ? "\"" : "");
        sb.append(", \"orderType\":").append(orderType != null ? "\"" : "").append(orderType).append(orderType != null ? "\"" : "");
        sb.append('}');
        return sb.toString();
    }

    public LoginLog(){
        super();
    }

    public String getId() {
    return id;
    }
    public void setId(String id) {
    this.id = id;
    }
    public String getAccount() {
    return account;
    }
    public void setAccount(String account) {
    this.account = account;
    }
    public String getResult() {
    return result;
    }
    public void setResult(String result) {
    this.result = result;
    }
    public String getClientIp() {
    return clientIp;
    }
    public void setClientIp(String clientIp) {
    this.clientIp = clientIp;
    }
    public String getServerIp() {
    return serverIp;
    }
    public void setServerIp(String serverIp) {
    this.serverIp = serverIp;
    }
    public String getDeviceType() {
    return deviceType;
    }
    public void setDeviceType(String deviceType) {
    this.deviceType = deviceType;
    }
    public Date getLoginTime() {
    return loginTime;
    }
    public void setLoginTime(Date loginTime) {
    this.loginTime = loginTime;
    }
    public Date getLoginTime2() {
    return loginTime2;
    }
    public void setLoginTime2(Date loginTime2) {
    this.loginTime2 = loginTime2;
    }
    public String getRemark() {
    return remark;
    }
    public void setRemark(String remark) {
    this.remark = remark;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

}